package com.sicheng.metadata.se.exp.first;

import java.util.LinkedHashSet;
import java.util.Scanner;

/**
 * @author zsc
 * @version 1.0
 * @date 2021/9/9 21:19
 */
public class ReMoveDuplicate {
    public static void main(String[] args) {
        System.out.println(removeDuplicate(new Scanner(System.in).next()));
    }

    public static String removeDuplicate(String target) {
        LinkedHashSet<Character> set = new LinkedHashSet<>();
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < target.length(); i++) {
            set.add(target.charAt(i));
        }
        for (Character e : set) {
            stringBuilder.append(e);
        }
        return String.valueOf(stringBuilder);
    }
}
